import { axiosPlugin } from './api/config/index';
import { createApp } from "vue";
import router from "./router";

/* ant */
import Antd from 'ant-design-vue';
import "./assets/style.less"
import * as Icons from "@ant-design/icons-vue";
/* ant */

import piniaPersist from 'pinia-plugin-persist'
import { createPinia } from "pinia";
import myDirectives from "./directives/index"
import App from "@/App.vue";
import "in-less";
/* 导入本地组件 */
import myComponent from "./components/index"


const pinia = createPinia()
const app = createApp(App);

pinia.use(piniaPersist);



/* 导入所有icon组件 */
for (const key in Icons) {
    var iconList = Icons as any
    app.component(key, iconList[key])
}
app.use(Antd)
app.use(myDirectives)
app.use(myComponent);
app.use(router);
app.use(axiosPlugin);
app.use(pinia);
app.mount("#app");